package cainiaojiaocheng;

public class test7 {

	public static void main(String[] args) {
		Person per=null;
		per=new Person("ddd", 20);
		System.out.println(per.getName()+per.getAge());

	}

}
class Person{
	private String name;
	private int age;
	public Person(String name,int age)
	{
		this.setAge(age);
		this.setName(name);
	}
	public int getAge()
	{
		return age;
	}
	public void setAge(int age)
	{
		this.age=age;
	}
	public String getName(){
		return name;
	}
	public void setName(String name)
	{
		this.name=name;
	}
}